-- GENERATED SPELL FOR [Anubisath Swarmguard] --


function spell0_15538(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15538', 674, 1)
end

function Sorts_15538(pUnit, Event)
local choix_sorts_15538 = math.random(0, 0)
if choix_sorts_15538 == 0 then
pUnit:RegisterEvent('spell0_15538', 1, 1)
end
end

function mob15538_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15538', math.random(1500, 3000), 1)
end

function mob15538_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15538_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15538_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15538, 1, 'mob15538_Action')
RegisterUnitEvent(15538, 2, 'mob15538_Leave')
RegisterUnitEvent(15538, 3, 'mob15538_Kill')
RegisterUnitEvent(15538, 4, 'mob15538_Die')
